import Vue from 'vue'
import VueRouter from 'vue-router'
import Login from '../views/login.vue'
import HomeRouter from './home.router'
Vue.use(VueRouter)

const routes = [
    {
        path: '/login',
        name: 'login',
        component: Login
    },
    {
        path: '/logout',
        redirect: '/login'
    },
  ...HomeRouter
]

const router = new VueRouter({
  // mode: 'history',
  routes
})

export default router
